package com.dwusoft.sendmsg.service.plugin;

import com.apache.api.api.TimeTaskService;
import com.apache.api.manager.PluginConnector;
import com.apache.api.vo.ParamsVo;
import com.apache.api.vo.ResultEntity;
import com.dwusoft.sendmsg.service.template.SendmsgTask;
/**
 * 发送短信定时任务
 * @author guogf
 */
public class SendmsgTaskPluginImpl implements TimeTaskService, PluginConnector {

	@Override
	public Object execute(ParamsVo arg0) throws Exception {
		new SendmsgTask().run();
		return new ResultEntity();
	}

	@Override
	public boolean run() {
		try {
			execute(null);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return false;
	}

}
